package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.Post;

import java.util.List;


public interface PostService extends IService<Post> {
    Post getPostDetail(String postId);
    void createPost(Post post);
    Post likePost(String postId, boolean isLiked);
    Post submitComment(String  postId, String userId, String content);
    List<Post> getHotPosts();
}